package com.ruoyi.authors.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 论文作者表对象 paper_authors
 * 
 * @author ruoyi
 * @date 2025-04-13
 */
public class PaperAuthors extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 论文ID */
    @Excel(name = "论文ID")
    private Long paperId;

    /** 作者ID */
    @Excel(name = "作者ID")
    private Long authorId;

    /** 作者类型(导师或学生) */
    @Excel(name = "作者类型(导师或学生)")
    private String authorType;

    /** 作者角色 */
    @Excel(name = "作者角色")
    private String authorRole;

    /** 贡献度(百分比) */
    @Excel(name = "贡献度(百分比)")
    private Long contributionDegree;

    /** 是否通讯作者 */
    @Excel(name = "是否通讯作者")
    private Integer isCorrespondingAuthor;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPaperId(Long paperId) 
    {
        this.paperId = paperId;
    }

    public Long getPaperId() 
    {
        return paperId;
    }

    public void setAuthorId(Long authorId) 
    {
        this.authorId = authorId;
    }

    public Long getAuthorId() 
    {
        return authorId;
    }

    public void setAuthorType(String authorType) 
    {
        this.authorType = authorType;
    }

    public String getAuthorType() 
    {
        return authorType;
    }

    public void setAuthorRole(String authorRole) 
    {
        this.authorRole = authorRole;
    }

    public String getAuthorRole() 
    {
        return authorRole;
    }

    public void setContributionDegree(Long contributionDegree) 
    {
        this.contributionDegree = contributionDegree;
    }

    public Long getContributionDegree() 
    {
        return contributionDegree;
    }

    public void setIsCorrespondingAuthor(Integer isCorrespondingAuthor) 
    {
        this.isCorrespondingAuthor = isCorrespondingAuthor;
    }

    public Integer getIsCorrespondingAuthor() 
    {
        return isCorrespondingAuthor;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("paperId", getPaperId())
            .append("authorId", getAuthorId())
            .append("authorType", getAuthorType())
            .append("authorRole", getAuthorRole())
            .append("contributionDegree", getContributionDegree())
            .append("isCorrespondingAuthor", getIsCorrespondingAuthor())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
